function getorderData(){
    var arr = [
    {
        id:1,
        icon:"/images/food.jpg",
        title:"食物1",
        desc:"描述信息",
        price:"2.5"
    },{
        id:2,
        icon:"/images/food.jpg",
        title:"食物2",
        desc:"描述信息",
        price:"200"
    },{
        id:3,
        icon:"/images/food.jpg",
        title:"食物3",
        desc:"描述信息",
        price:"5"
    },{
        id:4,
        icon:"/images/food.jpg",
        title:"食物4",
        desc:"描述信息",
        price:"10"
    }
]
return arr
}

function getuserimg(){
    var arr=[
        {
            id:1,
            name:"迪卢克",
            url:"/images/Faces/dlk.png"
        },
        {
            id:2,
            name:"宵宫",
            url:"/images/Faces/xg.png"
        },
        {
            id:3,
            name:"雷电将军",
            url:"/images/Faces/ldjj.png"
        },
        {
            id:4,
            name:"甘雨",
            url:"/images/Faces/gy.png"
        },
        {
            id:5,
            name:"达达利亚",
            url:"/images/Faces/ddly.png"
        },
        {
            id:6,
            name:"枫原万叶",
            url:"/images/Faces/fywy.png"
        },
        {
            id:7,
            name:"胡桃",
            url:"/images/Faces/ht.png"
        },
        {
            id:8,
            name:"九条沙罗",
            url:"/images/Faces/jtsl.png"
        },
        {
            id:9,
            name:"可莉",
            url:"/images/Faces/kl.png"
        },
        {
            id:10,
            name:"刻晴",
            url:"/images/Faces/kq.png"
        },
        {
            id:11,
            name:"罗莎莉亚",
            url:"/images/Faces/lsly.png"
        },
        {
            id:12,
            name:"神里凌华",
            url:"/images/Faces/sllh.png"
        },
        {
            id:13,
            name:"烟绯",
            url:"/images/Faces/yf.png"
        },
        {
            id:14,
            name:"优菈",
            url:"/images/Faces/yl.png"
        },
        {
            id:15,
            name:"钟离",
            url:"/images/Faces/zl.png"
        },
        {
            id:16,
            name:"早柚",
            url:"/images/Faces/zy.png"
        }
    ]
    return arr
}
const getData = (url) =>{

    return new Promise((resolve,reject) =>{
       wx.request({
         url: url,
         success(res){
            resolve(res.data) 

         },
         fail(err){
            reject(err) 
         }
       }) 
    })
}
// const getUserData = (url,username) =>{

//     return new Promise((resolve,reject) =>{
//        wx.request({
//          url: url,
//          data:username,
//          success(res){
//             resolve(res.data) 

//          },
//          fail(err){
//             reject(err) 
//          }
//        }) 
//     })
// }
// function getAdvertImg() {
//     var imgArr = [
//       {
//         "id": 0,
//         "url": "/images/advert/椰奶奶茶.png",
//         "name": "椰奶奶茶",
//         "price": "15.00",
//         "describe": "这是一杯奶茶"
//       },
//       {
//         "id": 1,
//         "url": "/images/advert/桂圆红枣奶茶.jpeg",
//         "name": "桂圆红枣奶茶",
//         "price": "15.00",
//         "describe": "这是一杯奶茶"
//       },
//       {
//         "id": 2,
//         "url": "/images/advert/港式奶茶.jpeg",
//         "name": "港式奶茶",
//         "price": "15.00",
//         "describe": "这是一杯奶茶"
//       },
//       {
//         "id": 3,
//         "url": "/images/advert/草莓奶茶.jpeg",
//         "name": "草莓奶茶",
//         "price": "15.00",
//         "describe": "这是一杯奶茶"
//       },
//     ]
//     return imgArr;
//   }

  function getNote() {
    var arr = [
        {
            
        }
    ]
  }

module.exports={
    getorderData,
    getuserimg,
    getData
}